package com.clouds.wms.service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Salmd;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface SalmdService {
	PagesBean getSalmdList(String mcaa, String mcab, int offset,int pageSize)throws SysException;
	int saveSalmd(Salmd salmd)throws SysException;
	int updateSalmd(Salmd salmd)throws SysException;
	int getMaxMdac()throws SysException;
	int delSalmd(String mdaa, String mdab, String mdacs)throws SysException;
	int changeStatus(String mdaa, String mdab, String status)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	void delSalmcmd(String mdaa, String mdab)throws SysException;
	void delSalmdAll(String mdaa, String mdab)throws SysException;
}
